/*
* Written by Caleb Padilla
* File Loader.cpp
*
*/
#include "stdafx.h"
#include "FileLoader.h"
#include <fstream>

// Gets files and stores them in a vector.
void FileLoader::load(string fileName){
	ifstream fin;
	double tempDoub;
	fin.open(fileName);
	
	if(fin.is_open()){
		while(fin >> tempDoub){
			v1.push_back(tempDoub);
		}
	}
	fin.close();
}

// Accessor for getting a vector.
vector<double> FileLoader::getVector(){
	return v1;
}

